<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/static/lib/html5shiv.js"></script>
    <script type="text/javascript" src="/static/lib/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/static/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="/static/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>订单详情</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 用户中心 <span class="c-gray en">&gt;</span> 订单管理 <span class="c-gray en">&gt;</span> 订单详情 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
        </span>
    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg table-sort">
            <thead></thead>
            <tbody id="content">
                <tr>
                    <td>订单编号: {$data.number}</td>
                    <td>收件人: {$data.name}</td>
                    <td>联系电话: {$data.tel}</td>
                    <td>收件地址: {$data.address}</td>
                </tr>
                <tr>
                    <td>
                        订单状态:<span>{if condition="($data.status == 1)"} 待付款{elseif condition="($data.status == 2)"/} 已付款,待发货{elseif condition="($data.status == 3)"/} 已发货,待签收{elseif condition="($data.status == 4)"/} 已签收,待评价{elseif condition="($data.status == 5)"/}已评价{else /}订单完成{/if}</span>
                    </td>
                    <td>下单时间: {$data.addTime}</td>
                    <td>付款时间: </td>
                    <td>总金额: {$data.total}元</td>
                </tr>
            </tbody>
        </table>
        <br>
        <table class="table table-border table-bordered table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th width="100">商品图片</th>
                <th width="100">商品名称</th>
                <th width="80">商品货号</th>
                <th width="50">商品金额</th>
                <th width="80">商品数量</th>
                <th width="80">商品总价</th>
            </tr>
            </thead>
            <tbody id="content">
            {foreach $datas as $vo}
                <tr class="text-c">
                    <td><img src="{$vo.image}" alt="" height="60"></td>
                    <td>{$vo.name}</td>
                    <td>{$vo.hid}</td>
                    <td>{$vo.price}</td>
                    <td>{$vo.num}</td>
                    <td>{$vo.sum}</td>
                </tr>
            {/foreach}
            </tbody>
        </table>
        <div id="page"></div>
    </div>
</div>




<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->

<script type="text/javascript" src="/static/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/messages_zh.js"></script>

<script type="text/javascript">
    // 商品状态
    function status(id,status){
        if(status == 1){
            var str = '确认要通过审核吗?';
        }
        if(status == 2){
            var str = '确认要发布吗?';
        }
        if(status == 3){
            var str = '确认要下架吗?';
        }
        if(status == 4){
            var str = '确认要发布吗?';
        }
        layer.confirm(str,function(index){
            $.post('{:url("admin/Order/status")}',{id:id,status:status},function (data) {
                if(data.status > 0){
                    window.location.reload();
                }
            })
        })
    }
</script>
</body>
</html>